package com.kyd.auth.repository;

import com.kyd.auth.modle.DriverAccount;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author zhuangqi
 * @date 2019-03-27
 */
public interface DriverAccountRepository extends JpaRepository<DriverAccount,Long> {


    boolean existsByPhone(String phone);

    DriverAccount findByPhone(String phone);

}
